package com.jiuxian.layui;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.servlet.ModelAndView;


@Controller
@RequestMapping("/hello")
public class TestController {

    @GetMapping("/hi")
    public ModelAndView hi(){
        // 创建模型视图对象
        ModelAndView mv = new ModelAndView();
        // 设置视图
        mv.setViewName("button");
        return mv;
    }
}
